/**
 * @Date: 2022-04-19 21:04:46
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-19 21:05:59
 * @FilePath: \weibo-api\model\AtBlog.js
 * @Description: something
 */
const sequelize = require("../db/seq");
const { DataTypes } = require("sequelize");
//创建模型 表名字为'blog'
const AtBlog = sequelize.define("AtBlog", {
  userId: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },
  blogId: {
    type: DataTypes.INTEGER,
  },
  isRead: {
    type: DataTypes.BOOLEAN,
    allowNull: false,
    defaultValue: false,
    comment: "是否已读",
  },
});
module.exports = AtBlog;
